package com.xjh.o2o.until;

public class PathUtil {
	
	private static String seperator = System.getProperty("file.separator");
	 public static String getImagBasePath(){
		 
		 String os=System.getProperty("os.name");
		 
		 String basePath="";
		 if(os.toLowerCase().startsWith("win")){
			 basePath = "D:/projectdev/image";
		 }else{
			 basePath = "/Users/baidu/work/image";
		 }
			basePath = basePath.replace("/", seperator);
			return basePath;
		 
	 }
	 
		public static String getShopImagePath(long shopId) {
			String imagePath = "/upload/images/item/shop/" + shopId + "/";
			return imagePath.replace("/", seperator);
		}
}
